package com.motong.gongdan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.motong.gongdan.entity.DeviceProduceLog;
import com.motong.gongdan.vo.H5Vo.device.query.CountDashboardQuery;
import com.motong.gongdan.vo.H5Vo.device.vo.CountDashboardVo;
import com.motong.gongdan.vo.system.device.vo.CountReportVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceProduceLogMapper extends BaseMapper<DeviceProduceLog> {

    List<CountDashboardVo> countDashboard(@Param("query") CountDashboardQuery query);

    /**
     * 计数报表
     *
     * @param query 请求参数
     * @param page  分页
     */
    Page<CountReportVo> countReport(Page<DeviceProduceLog> page, @Param("query") CountDashboardQuery query);

    /**
     * 小时计数数据
     */
    List<CountReportVo> hourCountReport(@Param("query") CountDashboardQuery query);
}